package com.beiing.tianshuai.tianshuai.entity;

import com.beiing.tianshuai.tianshuai.app.HttpRequestConstant;
import com.google.gson.annotations.SerializedName;

/**
 * Created by Jinni on 2017/8/9 0009.
 */

public class SplashBean {

    /**
     * code : 200
     * data : {"id":"10","picname":"596b475c0b6ba.jpg","link":""}
     */

    @SerializedName("code")
    private int code;
    @SerializedName("data")
    private DataBean data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * id : 10
         * picname : 596b475c0b6ba.jpg
         * link :
         */

        @SerializedName("id")
        private String id;
        @SerializedName("picname")
        private String picname;
        @SerializedName("link")
        private String link;
        @SerializedName("type_name")
        private String typeName;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getPicname() {
            return HttpRequestConstant.SPLASH_IMG_URL + picname;
        }

        public void setPicname(String picname) {
            this.picname = picname;
        }

        public String getLink() {
            return link;
        }

        public void setLink(String link) {
            this.link = link;
        }

        public String getTypeName() {
            return typeName;
        }

        public void setTypeName(String typeName) {
            this.typeName = typeName;
        }
    }
}
